﻿@model IEnumerable<BlackBox.News> 

@{
    ViewBag.Title = "News";
}

<div id="news-page">
    <h3>All news</h3>

    @foreach(var news in Model)
    {
        <div class="news-main">
            <h4>@Html.ActionLink(news.title, "EditNews", new{id = news.id})</h4>
            <p class="newsDate">@news.date</p>
            <p> @news.message </p>
        </div>
    }

</div>
